<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${user.id}" type="hidden" readonly>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">用户名称</label>
                            <div class="col-sm-8">
                                <input id="userId" name="userId-s" th:value="${user.userId}" class="form-control" readonly
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">微信openid：</label>
                            <div class="col-sm-8">
                                <input id="openId" name="openId-s" th:value="${user.openId}" class="form-control" readonly
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">真实姓名：</label>
                            <div class="col-sm-8">
                                <input id="realName" name="realName" th:value="${user.realName}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">手机号：</label>
                            <div class="col-sm-8">
                                <input id="phone" name="phone" th:value="${user.phone}" class="form-control"
                                       minlength="11" maxlength="11" placeholder="请输入手机号"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">地址：</label>
                            <div class="col-sm-8">
                                <input id="address" name="address" th:value="${user.address}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">积分：</label>
                            <div class="col-sm-8">
                                <input id="integral" name="integral" th:value="${user.integral}" class="form-control"
                                       readonly
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">贡献度：</label>
                            <div class="col-sm-8">
                                <input id="contribution" name="contribution" th:value="${user.contribution}" readonly
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">可借书数量：</label>
                            <div class="col-sm-8">
                                <input id="borrowNum" name="borrowNum" th:value="${user.borrowNum}" class="form-control"
                                       type="number">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">个人描述：</label>
                            <div class="col-sm-8">
                                <input id="personalDescription" name="personalDescription"
                                       th:value="${user.personalDescription}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否黑名单：</label>
                            <div class="col-sm-8">
                                <label class="radio-inline">
                                    <input
                                            th:field="${user.isBlack}" type="radio" name="isBlack" value="1"/>
                                    是
                                </label>
                                <label class="radio-inline">
                                    <input
                                            th:field="${user.isBlack}" type="radio" name="isBlack" value="0"/>
                                    否
                                </label>

                                <!--<input id="isBlack" name="isBlack" th:value="${user.isBlack}" class="form-control"
                                       type="text">-->
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">阅读过的书：</label>
                            <div class="col-sm-8">
                                <input id="readBook" name="readBook" th:value="${user.readBook}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">阅读年龄：</label>
                            <div class="col-sm-8">
                                <input id="readAge" name="readAge" th:value="${user.readAge}" class="form-control"
                                       type="text" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">行业id：</label>
                            <div class="col-sm-8">
                                <input id="industryId" name="industryId" th:value="${user.industryId}"
                                       class="form-control" type="text" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">职业名称：</label>
                            <div class="col-sm-8">
                                <input id="redundance1" name="redundance1" th:value="${user.redundance1}"
                                       class="form-control" type="text" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">用户头像：</label>
                            <div class="col-sm-8">
                                <img id="images" name="images" th:src="${user.images}"
                                     style="max-height: 150px;max-width: 150px" alt="${user.nickName}" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">性别：</label> <!--0:女,1:男,2:保密-->
                            <div class="col-sm-8">
                                <label class="radio-inline">
                                    <input
                                            th:field="${user.sex}" type="radio" name="isBlack" value="0"/>
                                    女
                                </label>
                                <label class="radio-inline">
                                    <input
                                            th:field="${user.sex}" type="radio" name="isBlack" value="1"/>
                                    男
                                </label>
                                <label class="radio-inline">
                                    <input
                                            th:field="${user.sex}" type="radio" name="isBlack" value="2"/>
                                    保密
                                </label>

                                <!--<input id="sex" name="sex" th:filed="${user.sex}" class="form-control" type="text" value="1">-->
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">用户昵称：</label>
                            <div class="col-sm-8">
                                <input id="nickName" name="nickName" th:value="${user.nickName}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">座右铭：</label>
                            <div class="col-sm-8">
                                <input id="motto" name="motto" th:value="${user.motto}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group" th:if="${user.birthday != null}">
                            <label class="col-sm-3 control-label">出生日期：</label>
                            <div class="col-sm-8">
                                <input id="birthday" name="birthday"
                                       th:value="${#dates.format(user.birthday,'yyyy-MM-dd')}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <!--<div class="gg-formGroup">
                            <div class="gg-formTitle">
                                <em class="gg-star">*</em>
                                <span>出生年月:</span>
                            </div>

                            <div class="gg-formDetail">
                                <input type="text" class="laydate-icon layer-date form-control" id="birth" name="birth" th:value="${user.birthday}==null?null:${#dates.format(user.birthday,'yyyy-MM-dd')}" placeholder="请选择出生年月"
                                       onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" style="background-color: #fff;" />
                            </div>
                        </div>-->
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/book/user/edit.js">
</script>
</body>
</html>
